package com.xiao.service.controller;

import com.xiao.service.OpenFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OpenFeignController {

    @Autowired
    private OpenFeignService openFeignService;
    @GetMapping("/getOpenFeign/{id}")
    public String getOpenFeign(@PathVariable("id") Long id){
        System.out.println("进入openFeign--"+id);
        return openFeignService.getDiscovery(id);
    }
}
